import { defineStore } from "pinia";
import {ref,reactive} from "vue"
export const orderListStore = defineStore("orderListStoreId1", () => {
    const detailData = ref([
        {
            type:"text",
            prop:"channelKey",
            name:"渠道Key",
            value:null
        },
    ])
    const tableProp = reactive(
        {
            name: "supplierList",
            propsList: [
    
                {
                    label: '产品名称',
                    prop: 'productName',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    label: '渠道Key',
                    prop: 'channelKey',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    label: '统计日期',
                    prop: 'statisticsDate',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                // {
                //     label: '渠道编码',
                //     prop: 'channelCode',
                //     type: 'normal',
                //     minWidth: '100px',
                //     hidden: true,
                // },
                // {
                //     label: '渠道名称',
                //     prop: 'channelName',
                //     type: 'normal',
                //     minWidth: '100px',
                //     hidden: true,
                // },
                {
                    label: '今日uv（访问）',
                    prop: 'userVisit',
                    type: 'custom',
                    slotName:"userVisit",
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    label: '签约率',
                    prop: 'signingRate',
                    type: 'custom',
                    slotName:"signingRate",
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    label: '订购成功',
                    prop: 'orderedSuccessQuantity',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    label: '订购失败',
                    prop: 'orderedFailedQuantity',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    label: '订购中',
                    prop: 'orderindQuantity',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    label: '其他数据',
                    prop: 'otherQuantity',
                    type: 'custom',
                    slotName:"otherQuantity",
                    minWidth: '100px',
                    hidden: true,
                }
            ]
    })
    
    return {
        detailData, tableProp
    }
})